#include "include.h"

#ifdef USE_NULL

#include "gui/guievent.h"
#include "null_graphicview.h"



#include "compile/debug_memoryleaks"
using namespace gui;
using namespace nullgui;

GraphicViewNULL* GraphicViewNULL::create()
{
    return new GraphicViewNULL();
}


GraphicViewNULL::GraphicViewNULL()
{
    painternull=GraphicPainterNULL::create();
    GraphicView::setPainter(painternull);
}


GraphicViewNULL::~GraphicViewNULL()
{    
    if (painternull)
    {
        delete painternull;
        GraphicView::setPainter(painternull = NULL);
    }
}


/** This virtual method must be overwritten to return
  the width of the widget the graphic is shown in */
int GraphicViewNULL::getWidth()
{
    std::cout<<"GraphicViewNULL::getWidth()"<<std::endl;
    return 0;
}

/** This virtual method must be overwritten to return
  the height of the widget the graphic is shown in */
int GraphicViewNULL::getHeight()
{
	std::cout<<"GraphicViewNULL::getHeight()"<<std::endl;
	return 0;
}

void GraphicViewNULL::redraw()
{
	std::cout<<"GraphicViewNULL::redraw()"<<std::endl;
}






#endif
